package tech_web.yml_to_data;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
import sun.dc.pr.PRError;
import java.util.Date;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Component
@ConfigurationProperties(prefix = "sss")
public class Student {
    private int age;
    private String name;
    private Map<String,Object>map;
    private List<Object>list;
    private Dog dog;
    private Date birthday;
    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", name='" + name + '\'' +
                ", map=" + map +
                ", list=" + list +
                ", dog=" + dog +
                ", birthday=" + birthday +
                '}';
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Map<String, Object> getMap() {
        return map;
    }

    public void setMap(Map<String, Object> map) {
        this.map = map;
    }

    public List<Object> getList() {
        return list;
    }

    public void setList(List<Object> list) {
        this.list = list;
    }

    public Dog getDog() {
        return dog;
    }

    public void setDog(Dog dog) {
        this.dog = dog;
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public Student(int age, String name, Map<String, Object> map, List<Object> list, Dog dog, Date birthday) {
        this.age = age;
        this.name = name;
        this.map = map;
        this.list = list;
        this.dog = dog;
        this.birthday = birthday;
    }

    public Student(){}


}
